package day03;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 * @author jhj
 * @date 2022/5/11 18:48
 */
public class TestLinkedList {
    public static void main(String[] args) {
        Linked a = new Linked();
        Linked b = new Linked();
        Linked c = new Linked();
        a.setNext(b);
        b.setNext(c);
        a.setValue(10);
        b.setValue(11);
        new LinkedList<>();
        c.setValue(12);

        System.out.println(a.getNext().getValue());
    }
}
class Linked{
    private Linked next;
    private int value;

    public Linked getNext() {
        return next;
    }

    public void setNext(Linked next) {
        this.next = next;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
